<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
header('Content-type: text/html; charset=utf-8');
header('Cache-Control: no-cache');
require_once './system/common.inc.php';
require_once './system/function/login.inc.php';


$bduss=isset($_POST['bduss'])?$_POST['bduss']:null;
$formhash = $_POST['formhash'] ? $_POST['formhash'] : $_GET['formhash'];

if(isset($bduss))
{
	callback();
	exit;
}

?>

<!DOCTYPE html>
<html>
<head>
<title>手动绑定 - 贴吧签到助手</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="author" content="net909" />
<link rel="shortcut icon" href="/favicon.ico" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="template/default/style/main.css" type="text/css" />
<link rel="stylesheet" href="template/default/style/api_login.css" type="text/css" />
</head>
<body>
<div class="wrapper" id="page_login">
<div class="center-box">
<h1>手动绑定</h1>
<form method="post" action="manual_bind.php" onsubmit="document.getElementById('submit').disabled=true">
<div class="login-info">
<?php
echo '
<div id="tips"><p>绑定说明： 打开手机百度（wapp.baidu.com），登录你的百度账号后将cookie中的BDUSS值提取出来，粘贴到下方输入框内。</p>
<p style="color:red">注意： 手动绑定后，如果在浏览器中点击“退出”，会导致绑定失效！建议您在浏览器的“隐身窗口”中绑定账号。</p>
</div>
<form method="post" id="manual_input" action="manual_bind.php">
<input type="hidden" name="formhash" value="'.$formhash.'" />';
?>
<p>BDUSS=<br>
<input type="text" id="cookie" name="cookie" placeholder="输入你的BDUSS" /></p></div>
<p class="btns">
<input type="submit" id="submit" value="绑定账号" />
<button onclick="window.close();">返回网站</button>
</p>
</form>
</div>
<p class="copyright">Designed by <a href="http://mrp6688.52n.cn" target="_blank">消失的彩虹海</a> - 主题 by <a href="http://www.ikk.me/" target="_blank">kookxiang</a><br>All right reserved.</p>
</div>
</body>
</html>